/*
 * @Author: 张小平
 * @Date:   2025-05-01
 * @Email:  qqshuqian@163.com
 * @Copyright © 2024 aseyun. All rights reserved.
 */
export const tableOption = {
  "border": true,
  "index": true,
  "indexLabel": "#",
  "stripe": true,
  "menuAlign": "center",
  "align": "center",
  "searchMenuSpan": 6,
  grid: window.isMobile,
  gridSpan: 24,
  menuWidth: 240,
  editBtn:true,
  saveBtn: true,
  addBtn: true,
  rowKey: 'id',
  rowParentKey: 'parentId',
  "column": [
    // {
    //   label: '部门编码',
    //   prop: 'code',
    //   type: "input"
    // },
    // {
    //   label: '上级部门名称',
    //   prop: 'name',
    //   type: "input",
    //   width:"200px"
    // },
    {
      label: '部门名称',
      prop: 'name',
      type: "input",
      search:true,
      span: 12,
    },
    {
      label: '部门全称',
      prop: 'fullName',
      type: "input",
      span: 12,
    },
    {
      type: 'select',
      label: '部门类型',
      prop: 'type',
      "span": 12,
      width:"100px",
      rules: [{
        required: true,
        message: '请选择部门类型',
        trigger: 'blur'
      }],
      dicCode:'orgType'
    },
    {
      label: '排序',
      prop: 'sort',
      type: "input",
      width:"60px",
      span: 12,
    }

    ]
}
